import { IsInt, IsString, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreatePaymentDto {
  @ApiProperty({ description: '订单ID' })
  @IsInt()
  orderId: number;

  @ApiProperty({ description: '支付方式', default: 'alipay', required: false })
  @IsOptional()
  @IsString()
  method?: string;
} 